home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 44
/
Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso
/
Aminet
/
misc
/
emu
/
p-interp.lha
/
p-interp-0.4
/
getopt.h
< prev
next >
Wrap
C/C++ Source or Header
|
2001-06-10
|
478b
|
19 lines
/*
* get option letter from argument vector
*/
extern int
optind, /* index into parent argv vector */
optopt; /* character checked for validity */
extern char
*optarg; /* argument associated with option */
#define BADCH ((int)'?')
#define EMSG ""
#ifndef _FCNTL_H
#define tell(s) {fputs(*nargv,stderr);fputs((s),stderr); \
fputc(optopt,stderr);fputc('\n',stderr);return(BADCH);}
#endif
extern int getopt(), getarg();
int getopt(int, char * const *, const char *);